﻿@using FCTC_Web.Controllers.Business.BusinessModel
@model DefaultModel      
<div class="con5_left">
    	<div class="con5_left_2">
        	<div class="pinggu_1">
    	 		<div class="pinggu_3"><a href="@Url.Action("Index", "VehicleBusiness")"><img src="/images/more2.gif" alt="more" /></a>最新商户二手车</div>
		  </div>
        </div>
        <div class="con5_left_3">
        	<div class="con5_left_4">
                @if (Model.LatestVehicles != null)
                {
                    for (int i = 0; i < 2 && i < Model.LatestVehicles.Count; i++)
                    {                        
                    <div class="con5_left_4_2">
                        <ul>
                            <li><a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.LatestVehicles[i].ID })">
                                @if (Model.LatestVehicles[i].Imgs != null && Model.LatestVehicles[i].Imgs.Count > 0)
                                {
                                    <img src="@Url.Action("ShowImage", "Image", new { id = Model.LatestVehicles[i].Imgs[0].ID })"  width="109" height="82" alt="tuijian" />
                                }
                                else
                                {
                                    <img alt="" src="/images/moren_car.jpg" /> 
                                }
                            </a></li>
                            <li>年份：@Html.DisplayFor(modelItem => Model.LatestVehicles[i].Year)年</li>
                            <li>车型：@Html.DisplayFor(modelItem => Model.LatestVehicles[i].VehicleStyle)</li>
                            <li>价格：<b>@Html.DisplayFor(modelItem => Model.LatestVehicles[i].Prize)万</b></li>
                             <li>排量：@Html.DisplayFor(modelItem => Model.LatestVehicles[i].DeliveryCapacity)L</li>
                        </ul>
                    </div>   
                    }
                }
            </div>
            <div class="con5_left_5">
            <table width="423" border="0" cellspacing="0" cellpadding="0">
                @if (Model.LatestVehicles != null && Model.LatestVehicles.Count > 2)
                {
                    for (int i = 2; i < 9 && i < Model.LatestVehicles.Count; i++)
                    {       
                    <tr>
                        <td width="160" height="23" class="zuixin_right">·<a href="@Url.Action("Details", "VehicleBusiness", new { id = Model.LatestVehicles[i].ID })">
                        @Model.LatestVehicles[i].CarBrand-@Model.LatestVehicles[i].VehicleStyle
                        </a></td>
                         <td width="50" height="23">@Html.DisplayFor(modelItem => Model.LatestVehicles[i].DeliveryCapacity)L
                        </td>
                        <td width="50" height="23">@Html.DisplayFor(modelItem => Model.LatestVehicles[i].Year)年
                        </td>
                        <td width="75" height="23" class="red">@Html.DisplayFor(modelItem => Model.LatestVehicles[i].Prize)万</td>
                        <td width="70" height="23">@Html.DisplayFor(modelItem => Model.LatestVehicles[i].EnrollmentDate)</td>
                    </tr>
                    <tr>
                        <td height="1" colspan="5" background="/images/zuixin_bj.gif">
                        </td>

                    </tr>
                    }
                }
            </table>
            </div>
        </div>
    </div>

